package com.senthink.gl.business.userlog.business;

import com.senthink.gl.business.userlog.SystemUserLog;
import com.senthink.gl.business.userlog.enums.LogDetailEnum;
import com.senthink.gl.business.domain.entity.UserLog;
import com.senthink.gl.business.domain.entity.*;
import com.senthink.gl.business.domain.service.*;
import com.senthink.gl.business.fault.DeviceTypeEnum;
import com.senthink.gl.business.messages.CodeMsg;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Component;

import javax.servlet.http.HttpServletRequest;

/**
 * 设备删除操作记录类
 * @author yuanpeng@senthink.com
 * @data 2018-02-02 9:57
 */

@Component
public class LogDeviceDeleteBusiness {

    @Autowired
    private CodeMsg codeMsg;

    public void main(SystemUserLog systemUserLog, UserLog userLog, HttpServletRequest request) {
        DeviceTypeEnum deviceTypeEnum = systemUserLog.deviceType();
        String sn = "";

        userLog.setDetails(LogDetailEnum.DELETE_DEVICE.getDetail() + ":" + systemUserLog.deviceType().getDeviceName() + "," + sn);
    }




}
